package com.yehun.enums;

import com.yehun.utils.Constant;

public enum UserTypeEnum implements BaseEnum<Integer> {

    ALL(Constant.Default.ValueInt, "全部"),
    ROOT(0, "超级管理员"),
    ADMIN(1, "普通管理员"),
    USER(10, "普通用户");


    private Integer value;
    private String text;

    UserTypeEnum(Integer value, String text) {
        this.value = value;
        this.text = text;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public String toString() {
        return this.value.toString();
    }
}
